package com.atguigu.gulimall.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * ?Ż?ȯ??Ϣ
 * 
 * @author WMT
 * @email ${email}
 * @date 2023-03-10 23:05:43
 */
@Data
@TableName("sms_coupon")
public class CouponEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private int id;
	/**
	 * ?Żݾ?????[0->ȫ????ȯ??1->??Ա??ȯ??2->??????ȯ??3->ע????ȯ]
	 */
	private int couponType;
	/**
	 * ?Ż?ȯͼƬ
	 */
	private String couponImg;
	/**
	 * ?Żݾ??
	 */
	private String couponName;
	/**
	 * ?
	 */
	private int num;
	/**
	 * ?
	 */
	private BigDecimal amount;
	/**
	 * ÿ?????????
	 */
	private int perLimit;
	/**
	 * ʹ???ż
	 */
	private BigDecimal minPoint;
	/**
	 * ??ʼʱ?
	 */
	private LocalDateTime startTime;
	/**
	 * ????ʱ?
	 */
	private LocalDateTime endTime;
	/**
	 * ʹ??????[0->ȫ??ͨ?ã?1->ָ?????ࣻ2->ָ????Ʒ]
	 */
	private int useType;
	/**
	 * ??ע
	 */
	private String note;
	/**
	 * ?????
	 */
	private int publishCount;
	/**
	 * ??ʹ???
	 */
	private int useCount;
	/**
	 * ??ȡ?
	 */
	private int receiveCount;
	/**
	 * ??????ȡ?Ŀ?ʼ???
	 */
	private LocalDateTime enableStartTime;
	/**
	 * ??????ȡ?Ľ??????
	 */
	private LocalDateTime enableEndTime;
	/**
	 * ?Ż??
	 */
	private String code;
	/**
	 * ??????ȡ?Ļ?Ա?ȼ?[0->???޵ȼ???????-??Ӧ?ȼ?]
	 */
	private int memberLevel;
	/**
	 * ????״̬[0-δ??????1-?ѷ???]
	 */
	private int publish;

}
